#ifndef UART_H
#define UART_H

#include <QObject>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <termios.h>


#define RD_NUM 1
#define SERIAL_DEV_0	"/dev/ttyUSB0"
#define BAUD_RATE	B115200

class uart : public QObject
{
    Q_OBJECT
public:
    explicit uart(QObject *parent = 0);

signals:

public slots:

public:
    int uartScan(int *fd);
    int uartInit();
};

#endif // UART_H
